function up(tbl){
	let user_id=tbl.user_id;
	let picurl=tbl.image;
	if(!isEmpty(user_id)||!isEmpty(picurl)){
		let img=dao.insert({"_table":"cmf_app_photo","+id":"photo_id","savepath":picurl,"user_id":user_id})
		attr("return",{"error":200,"message":"success","data":{
			"picurl":picurl,"photo_id":img.photo_id
		}})
	}else{
		attr("return",{"error":204,"message":"图片上传失败"})
	}
	return "json"
}